package com.ctbu.tourism.api;import com.ctbu.tourism.entity.Config;import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import org.apache.ibatis.annotations.Select;import java.util.List;/** * @author wanglinli * at 18-4-14 下午4:21 * 注释: */@Mapperpublic interface ConfigAPI {    @Select("select * from tb_config where id = #{id}")    Config getConfigByID(Integer id);    @Select("select * from tb_config where configname = #{configname}")    Config getConfigByConfigName(String configname);    @Select("select * from tb_config")    List<Config> getConfigBy();    @Select("update tb_config set configparameter = #{parameter} where configname = #{type}")    Integer updateConfig(@Param("parameter") String parameter, @Param("type") String type);}